package autowired;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class AutowiredDemo {

	public static void main(String[] args) {
		ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("config.xml");
		GreetingBean gb = context.getBean("greetingBean",GreetingBean.class);
		gb.print();
	}
}
